package javax.realtime;

public class AsyncEvent {

	private AsyncEventHandler handler;
	
	public AsyncEvent(){}
	
	public void addHnadler(AsyncEventHandler handler)
	{
		if(handler == null) throw new IllegalArgumentException();
		this.handler = handler;
	}
	public void bintTo(String happening)
	{
		if(happening == null) throw new IllegalArgumentException();
		throw new UnknownHappeningException();
	}
	public ReleaseParameters createReleaseParameters()
	{
		//TODO: stub
		//return new AperiodicParameters();
		return null;
	}
	public void fire()
	{
		//TODO: stub
	}
	public boolean handledBy(AsyncEventHandler handler)
	{
		//TODO: stub
		return false;
	}
	public void removeHandler(AsyncEventHandler handler)
	{
		//TODO: stub
	}
	public void setHandler(AsyncEventHandler handler)
	{
		//TODO: stub
		this.handler = handler;
	}
	public void unbintTo(String happening)
	{
		//TODO: stub
	}
}
